<%@ page contentType="text/html;charset=UTF-8" %>
<%//@include file="../../common/sessionValidate.jsp" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
%>
<!DOCTYPE HTML>
<html lang="UTF-8">
<head>
    <title>申请信息</title>
    <%@ include file="../../common/meta.jsp" %>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta http-equiv="X-UA-Compatible" content="IE=9">
    <META HTTP-EQUIV="Cache-Control" CONTENT="no-cache, must-revalidate">
    <link rel="stylesheet" href="<%=basePath%>css/my-bootstrap.css" media="screen" id="tuserskin">
    <link rel="stylesheet" href="<%=basePath%>js/toastr/toastr.css">
    <link rel="stylesheet" href="<%=basePath%>css/bootstrapValidator.min.css">
    <link rel="stylesheet" href="<%=basePath%>css/font-awesome.min.css">
    <link rel="stylesheet" href="<%=basePath%>css/datePickerStyle.css">
    <!-- kind富文本编辑器  start-->
    <link rel="stylesheet" href="<%= basePath %>kindeditor/themes/default/default.css"/>
    <link rel="stylesheet" href="<%= basePath %>kindeditor/plugins/code/prettify.css"/>
    <script charset="utf-8" src="<%= basePath %>kindeditor/kindeditor.js"></script>
    <script charset="utf-8" src="<%= basePath %>kindeditor/lang/zh-CN.js"></script>
    <script charset="utf-8" src="<%= basePath %>kindeditor/plugins/code/prettify.js"></script>
    <!-- kind富文本编辑器  end-->
    <script type="text/javascript" src="<%= basePath %>js/jquery-1.8.3.min.js"></script>
    <script type="text/javascript" src="<%= basePath %>js/jquery.cookie.js"></script>

</head>
<style>
    hr {
        margin-top: 1px;
        border-bottom: 1px solid #1BBC9B;
    }
</style>
<script>
    var editor101; //后面赋值通过该全局变量执行；
    KindEditor.ready(function (K) {
        editor101 = K.create('textarea[name="editor101"]', {
            uploadJson: '<%= basePath %>upload/uploadFile',  //选择本地文件上传处理；
            fileManagerJson: '<%= basePath %>upload/uploadFileManager', //服务器文件浏览；
            allowFileManager: true,	//true时显示浏览远程服务器按钮。
            allowImageUpload: true	//true时显示图片上传按钮。
        });
        prettyPrint(); //google美化高亮显示富文本中html代码js；
    });
</script>
<body>
<form class="form-horizontal form-bordered form-row-strippe" name="ffAdd" id="ffAdd" mentod="post" role="form"
      data-toggle="validator" enctype="multipart/form-data">
    <div class="" style="margin-right:2px;padding-right:1px;">

        <!-------------------------- 面板  start--------------------------------->
        <div class="panel panel-primary">
            <div class="panel-heading clearfix" id="addHeaderDiv">
            </div>
            <div class="panel-body">
                <div class="row">
                    <h5>&nbsp;&nbsp;基本信息
                        <span class="text-right pull-right" id="buttonDivTB"></span>&nbsp;&nbsp;&nbsp;&nbsp;
                    </h5>
                    <hr>
                    <div class="col-xs-12">
                        <div class="col-xs-6">
                            <div class="form-group">
                                <label class="control-label col-xs-2"><strong><font color="red">*</font>用车事由</label>
                                <div class="col-xs-10">
                                    <input id="title" name="title" class="form-control"
                                           placeholder="请输入用车事由信息！"></input>
                                    <input id="id" name="id" type="hidden"/>
                                    <input id="biztype" name="biztype" type="hidden" value="MyApply"/>
                                    <input id="level1name" name="level1name" type="hidden" value="用车申请"/>
                                    <input id="level3name" name="level3name" type="hidden"/>
                                    <input id="types" name="types" type="hidden" value="CarApply"/>
                                </div>
                            </div>
                        </div>
                        <div class="col-xs-6">
                            <div class="form-group">
                                <label class="control-label col-xs-2"><strong><font
                                        color="red">*</font>车牌</strong></label>
                                <div class="col-xs-10">
                                    <select id="ext2" name="ext2" class="form-control">
                                        <option value="">---请选择---</option>
                                    </select>
                                </div>
                            </div>
                        </div>

                    </div><!--end 换列--><!--start 换列-->
                    <div class="col-xs-12">
                        <div class="col-xs-6">
                            <div class="form-group">
                                <label class="control-label col-xs-2"><font color="red">*</font>用车日期</label>
                                <div class="col-xs-4">
                                    <input id="newdate" name="newdate" type="text" class="form-control"
                                           placeholder="请选择日期" onclick='' readonly='true'/>
                                </div>
                                <label class="control-label col-xs-2"><font color="red">*</font>出发时间</label>
                                <div class="col-xs-4">
                                    <input id="ext1" name="ext1" type="text" class="form-control"
                                           placeholder="请选择出发时间" readonly='true'/>
                                </div>
                            </div>
                        </div>
                        <div class="col-xs-6">
                            <div class="form-group">
                                <label class="control-label col-xs-2">申请部门</label>
                                <div class="col-xs-10">
                                    <input id="hticount" name="hticount" type="text"
                                           value="<%=request.getSession().getAttribute("FREE_BRANCH_NAME") %>"
                                           class="form-control" placeholder="" readonly="true"/>
                                </div>
                            </div>
                        </div>

                    </div><!--end 换列--><!--start 换列-->
                    <div class="col-xs-12">
                        <div class="col-xs-6">
                            <div class="form-group">
                                <label class="control-label col-xs-2"><strong><font
                                        color="red">*</font>返回日期</strong></label>
                                <div class="col-xs-4">
                                    <input id="ext9" name="ext9" type="text" onclick='' readonly='true'
                                           class="form-control"/>
                                </div>
                                <label class="control-label col-xs-2"><font color="red">*</font>返回时间</label>
                                <div class="col-xs-4">
                                    <input id="ext6" name="ext6" type="text" placeholder="请选择返回时间" readonly="true"
                                           class="form-control"/>
                                </div>
                            </div>
                        </div>
                        <div class="col-xs-6">
                            <div class="form-group">
                                <label class="control-label col-xs-2"><font color="red">*</font>是否等候</label>
                                <div class="col-xs-10">
                                    <select id="status" name="status" class="form-control">
                                        <option value="1">是</option>
                                        <option value="0">否</option>
                                    </select>
                                </div>
                            </div>
                        </div>
                    </div>
                    <!--end 换列--><!--start 换列-->
                    <div class="col-xs-12">
                        <div class="col-xs-6">
                            <div class="form-group">
                                <label class="control-label col-xs-2"><strong><font color="red">*</font>用车时间(小时)</strong></label>
                                <div class="col-xs-10">
                                    <input id="ext5" name="ext5" type="text" value="0"  readonly="true" class="form-control"/>
                                </div>
                            </div>
                        </div>
                        <div class="col-xs-6">
                            <div class="form-group">
                                <label class="control-label col-xs-2"><strong><font color="red">*</font>等候时长（小时）</label>
                                <div class="col-xs-10">
                                    <input id="extint1" name="extint1" type="text" value="0" class="form-control"/>
                                </div>
                            </div>
                        </div>
                    </div>
                    <!--end 换列--><!--start 换列-->
                    <div class="col-xs-12">
                        <div class="col-xs-6">
                            <div class="form-group">
                                <label class="control-label col-xs-2"><strong><font color="red">*</font>始发地点</label>
                                <div class="col-xs-10">
                                    <input id="ext3" name="ext3" type="text" value="" class="form-control"/>
                                </div>
                            </div>
                        </div>
                        <div class="col-xs-6">
                            <div class="form-group">
                                <label class="control-label col-xs-2"><strong><font color="red">*</font>到达地点</label>
                                <div class="col-xs-10">
                                    <input id="ext4" name="ext4" type="text" class="form-control"/>
                                </div>
                            </div>
                        </div>
                    </div>
                    <!--end 换列--><!--start 换列-->
                    <div class="col-xs-12">
                        <div class="col-xs-6">
                            <div class="form-group">
                                <label class="control-label col-xs-2"><strong><font color="red">*</font>车辆类型</label>
                                <div class="col-xs-10">
                                    <input id="ext7" name="ext7" type="text" value="" class="form-control"/>
                                </div>
                            </div>
                        </div>
                        <div class="col-xs-6">
                            <div class="form-group">
                                <label class="control-label col-xs-2"><strong>其他要求</strong></label>
                                <div class="col-xs-10">
                                    <input id="ext8" name="ext8" type="text" class="form-control"/>
                                </div>
                            </div>
                        </div>
                    </div>
                    <!--end 换列--><!--start 换列-->
                    <div class="col-xs-12">
                        <div class="col-xs-6">
                            <div class="form-group">
                                <label class="control-label col-xs-2"><font color="red">*</font>申请人</label>
                                <div class="col-xs-10">
                                    <input id="creater" name="creater" type="text"
                                           value="<%=request.getSession().getAttribute("username") %>"
                                           class="form-control" placeholder="" readonly="true"/>
                                </div>
                            </div>
                        </div>
                        <div class="col-xs-6">
                            <div class="form-group">
                                <label class="control-label col-xs-2"><font color="red">*</font>申请时间</label>
                                <div class="col-xs-10">
                                    <input id="creattime" name="creattime" type="text" class="form-control"
                                           placeholder="" readonly="true"/>
                                </div>
                            </div>
                        </div>
                    </div><!--end 换列--><!--start 换列-->
                    <div class="col-xs-12">

                    </div><!--end 换列--><!--start 换列-->
                    <!-- end 内容 -->

                </div><!--end body-->
                <div class="modal-footer bg-info " id='buttonDiv'>
                </div>
            </div>
            <!--------------------------面板 end------------------------------------>

        </div>
    </div>
</form>

<!-- 模态框（Modal）start -->
<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel"
     aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                <h4 class="modal-title" id="myModalLabel">提示</h4>
            </div>
            <div class="modal-body" id="myModalMessDiv"></div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
            </div>
        </div><!-- /.modal-content -->
    </div><!-- /.modal -->
</div>
<!-- 模态框（Modal）end -->

</body>
</html>
<%!
    private String htmlspecialchars(String str) { //kindeditor去掉富文本中非法字符；
        str = str.replaceAll("&", "&amp;");
        str = str.replaceAll("<", "&lt;");
        str = str.replaceAll(">", "&gt;");
        str = str.replaceAll("\"", "&quot;");
        return str;
    }
%>
<script src="<%=basePath%>js/bootstrap.min.js"></script>
<script src="<%=basePath%>js/bootstrap-paginator.min.js"></script>
<script src="<%=basePath%>/js/respond.js"></script>
<script src="<%=basePath%>/js/html5.js"></script>
<script src="<%=basePath%>js/toastr/toastr.js"></script>
<script src="<%=basePath%>js/bootbox.js"></script>
<script src="<%=basePath%>js/jquery.validate.js"></script>
<script src="<%=basePath%>js/my-jquery-curd.js"></script>
<script src="<%=basePath%>js/tableSortTool.js"></script>
<script src="<%=basePath%>js/calendar.js"></script>
<script src="<%=basePath%>js/timePacker.js"></script>
<script src="<%= basePath %>js/layDate-v5.3.1/laydate/laydate.js"></script>
<script>
    //执行一个laydate实例
    //限定可选时间
    laydate.render({
        elem: '#ext1'
        ,type: 'time'
        ,min: '08:00:00'
        ,max: '18:00:00'
        ,btns: ['clear', 'confirm']
    });
    //限定可选时间
    laydate.render({
        elem: '#ext6'
        ,type: 'time'
        ,min: '08:00:00'
        ,max: '18:00:00'
        ,btns: ['clear', 'confirm']
    });
    laydate.render({
        elem: '#newdate'
        ,format: 'yyyy-MM-dd'
        ,btns: ['clear', 'confirm']
        ,value: initTime("newdate", "2")
    });
    laydate.render({
        elem: '#ext9'
        ,format: 'yyyy-MM-dd'
        ,btns: ['clear', 'confirm']
        ,value: initTime("ext9", "2")
    });

</script>
<!--调用方法-->
<script>
    var imgbasepath = "<%=basePath%>";
    /*
    $("#ext1").bind('click', function (event) {
        timePacker($(this), event, imgbasepath)
    }); // input框

    $("#ext6").bind('click', function (event) {
        timePacker($(this), event, imgbasepath)
    }); // input框
     */
</script>
<script type="text/javascript">
    function countHourse(){
        //计算用车时间；
        var a = $("#newdate").val() + ' '+$("#ext1").val()+':00';  //'2019-7-1 12:00:00';
        var b = $("#ext9").val() + ' '+$("#ext6").val()+':00';  // '2019-7-2 14:58:05';
        //alert(a +"    "+b);
        var t1 = Date.parse(new Date(a.replace(/-/g, "/")));
        var t2 = Date.parse(new Date(b.replace(/-/g, "/")));
        //alert("===="+(t2 - t1) + "毫秒");
        var miao = (t2 - t1)/(60*60*1000); //从毫秒变成小时；
        //alert(miao)
        $("#ext5").val(miao.toFixed(2)); //保留2位小数；
    }

    //新增保存数据
    function add() {
        countHourse();

        $("#addSaveButton").attr("disabled", true);
        var url = "<%=basePath%>t_news/saveT_news?time=" + Math.random();
        var postData = $("#ffAdd").serializeArray();
        $.post(url, postData, function (data) {
            if (data.result == "success") {
                showSuccessTips("恭喜保存成功!", "提示");  //保存成功  1.关闭弹出层，
            } else {
                $("#addSaveButton").removeAttr("disabled");
                $("#myModal").modal('show'); //hide;
                $("#myModalMessDiv").html("<font color='red'>对不起,保存数据失败，失败原因：" + data.info + "</font>");
                return false;
            }
        }).error(function () {
            $("#addSaveButton").removeAttr("disabled");
            //showErrorTips("保存数据失败!", "错误信息：");
            $("#myModal").modal('show'); //hide;
            $("#myModalMessDiv").html("<font color='red'>对不起,保存数据失败，失败原因：" + data.info + "</font>");
        });
    }

    //更新修改数据到后台
    function edit() {
        countHourse();
        $("#editSaveButton").attr("disabled", true);
        var url = "<%=basePath%>t_news/updateT_news?time=" + Math.random();
        myEdit2(url);
    }

    //更新修改数据到后台并且启动工作流
    function tjsh() {
        $("#editSaveButton").attr("disabled", true);
        $("#tjshSaveButton").attr("disabled", true);
        var url = "<%=basePath%>t_news/tjshT_news?time=" + Math.random();
        myCurdTjsh(url);
    }

    //初始化数据档案类型下拉框；
    function initDataGroup() {
        var purl = "<%=basePath%>t_data_dic/getAllT_data_dic?data_group=danganguanli&flag=1&startIndex=0&pageSize=1000&time=" + Math.random();
        $.getJSON(purl, function (data) {
            var optionHtml = "";
            $.each(data.items, function (i, item) {
                optionHtml += "<option value='" + item.data_no + "'>" + item.data_name + "</option>";
            });//end each
            $("#types").append(optionHtml);
        }); //end getJson
    }

    //初始化数据档案类型下拉框；
    function initDataGroup() {
        var purl = "<%=basePath%>t_data_dic/getAllT_data_dic?data_group=chepaiguanli&flag=1&startIndex=0&pageSize=1000&time=" + Math.random();
        $.getJSON(purl, function (data) {
            var optionHtml = "";
            $.each(data.items, function (i, item) {
                optionHtml += "<option value='" + item.data_name + "'>" + item.data_name + "</option>";
            });//end each
            $("#ext2").append(optionHtml);
        }); //end getJson
    }

    //初始化页面及校验
    $().ready(function () {
        //1、初始化数据显示
        var optype = '<%=request.getParameter("oplx")%>';
        var id = '<%=request.getParameter("id")%>';
        var functname = "用车申请";//'<%=request.getParameter("functname")%>';
        var functid = '<%=request.getParameter("functid")%>';
        var name = functname; //"新闻";

        if (optype == 'add') {
            $("#ffAdd")[0].reset();/*重置表单*/
            var basePath = "<i class='icon-plus'></i>&nbsp;";
            setHeader2("添加" + functname, basePath);//设置addHeaderDiv标题文字及按钮
            setButtonDivAdd2();//设置底部adddiv的 操作按钮
            //initTime("newdate", "2");
            //initTime("ext9", "2");
            initTime("creattime", "1");
            initDataGroup();
        } else if (optype == 'edit') {
            var basePath = "<i class='icon-pencil'></i>&nbsp;";
            setHeader2("修改" + functname, basePath);//设置addHeaderDiv标题文字及按钮
            setButtonDivEdit4();//设置adddiv的 操作按钮
            initDataGroup();
            var url = "<%=basePath%>t_news/getT_news?id=" + id + "&time=" + Math.random();
            $.getJSON(url, function (data) {//获取数据，并且自动填充form，自动代码待修改； @todo;
                setValue(data);
                //$("#effect_date").val(jsonDateFormat($("#effect_date").val())); //重新设置日期类型的值
            });
        } else if (optype == 'view') {
            var basePath = "<i class='icon-eye-open'></i>&nbsp;";//设置addHeaderDiv标题文字及按钮
            setHeader2("查看" + functname, basePath);
            setButtonDivView2();//设置adddiv的 操作按钮
            initDataGroup();
            var url = "<%=basePath%>t_news/getT_news?id=" + id + "&time=" + Math.random();
            $.getJSON(url, function (data) {//获取数据，并且自动填充form，自动代码待修改； @todo;
                setValue(data);
            });
            formReadOnly('ffAdd');//设置表单不可修改
        }

        //2、校验脚本初始化，start check
        $("#ffAdd").validate({
            submitHandler: function (form) {
                if ($("#opType").val() == "add") {
                    add();
                } else if ($("#opType").val() == "edit") {
                    edit();
                }
            },
            rules: {
                id: {
                    //required: true,
                    digits: true,
                    //minlength: 1,
                    maxlength: 11
                },
                types: {
                    //required: true,
                    maxlength: 45
                },
                title: {
                    required: true,
                    maxlength: 256
                },
                creater: {
                    //required: true,
                    maxlength: 45
                },
                updater: {
                    //required: true,
                    maxlength: 45
                },
                publisher: {
                    //required: true,
                    maxlength: 45
                },
                creattime: {
                    //required: true,
                    maxlength: 45
                },
                updattime: {
                    //required: true,
                    maxlength: 45
                },
                publishtime: {
                    //required: true,
                    maxlength: 45
                },
                checker: {
                    //required: true,
                    maxlength: 45
                },
                checktime: {
                    //required: true,
                    maxlength: 45
                },
                hticount: {
                    //required: true,
                    maxlength: 45
                },
                newfrom: {
                    required: true,
                    maxlength: 256
                },
                color: {
                    //required: true,
                    maxlength: 45
                },
                size: {
                    //required: true,
                    maxlength: 45
                },
                zg: {
                    //required: true,
                    maxlength: 128
                },
                cq: {
                    //required: true,
                    maxlength: 512
                },
                content: {
                    //required: true,
                    maxlength: 6000
                },
                memo: {
                    //required: true,
                    maxlength: 1024
                },
                ext1: {
                    required: true,
                    maxlength: 45
                },
                ext2: {
                    required: true,
                    maxlength: 64
                },
                ext3: {
                    required: true,
                    maxlength: 45
                },
                extint1: {
                    required: true,
                    digits: true,
                    maxlength: 3
                },
                ext4: {
                    required: true,
                    maxlength: 256
                },
                ext5: {
                    required: true,
                    maxlength: 256
                },
                ext6: {
                    required: true,
                    maxlength: 256
                },
                ext7: {
                    required: true,
                    maxlength: 512
                },
                ext8: {
                    //required: true,
                    maxlength: 512
                },
                ext9: {
                    required: true,
                    maxlength: 512
                },
                status: {
                    //required: true,
                    maxlength: 45
                },
                check2: {
                    //required: true,
                    maxlength: 45
                },
                classes: {
                    //required: true,
                    maxlength: 45
                },
                checkstatus: {
                    //required: true,
                    maxlength: 45
                },
                link: {
                    //required: true,
                    maxlength: 512
                },
                newdate: {
                    required: true,
                    maxlength: 45
                },
                descriptions: {
                    //required: true,
                    maxlength: 1024
                },
                level1: {
                    //required: true,
                    maxlength: 45
                },
                level2: {
                    //required: true,
                    maxlength: 45
                },
                level3: {
                    //required: true,
                    maxlength: 45
                },
                level1name: {
                    //required: true,
                    maxlength: 45
                },
                level2name: {
                    //required: true,
                    maxlength: 45
                },
                level3name: {
                    //required: true,
                    maxlength: 45
                },
                imagepath: {
                    //required: true,
                    maxlength: 512
                },
                shownum: {
                    //required: true,
                    digits: true,
                    //minlength: 1,
                    maxlength: 11
                },
                ranger: {
                    //required: true,
                    maxlength: 45
                }
            }, //end rules;
            messages: {
                id: {
                    //required: "主键不能为空！",
                    digits: "<font color='red'>请输入数字，不能输入非数字字符！</font>",
                    //minlength: "<font color='red'>最少输入1位！</font>",
                    maxlength: "<font color='red'>主键最大支持11位，输入的数据已经超过最大长度！</font>"
                },
                types: {
                    maxlength: "<font color='red'>新闻类型最大支持45位,输入的数据已经超过最大长度！</font>"
                },
                title: {
                    required: "<font color='red'> 不能为空！</font>",
                    maxlength: "<font color='red'> 最大支持512位,输入的数据已经超过最大长度！</font>"
                },
                creater: {
                    maxlength: "<font color='red'>录入人最大支持45位,输入的数据已经超过最大长度！</font>"
                },
                extdouble1: {
                    //required: "显示顺序不能为空！",
                    digits: "<font color='red'>请输入数字，不能输入非数字字符！</font>",
                    //minlength: "<font color='red'>最少输入1位！</font>",
                    maxlength: "<font color='red'>显示顺序最大支持11位，输入的数据已经超过最大长度！</font>"
                },
                updater: {
                    maxlength: "<font color='red'>更新人最大支持45位,输入的数据已经超过最大长度！</font>"
                },
                publisher: {
                    maxlength: "<font color='red'>发布人最大支持45位,输入的数据已经超过最大长度！</font>"
                },
                creattime: {
                    maxlength: "<font color='red'>录入时间最大支持45位,输入的数据已经超过最大长度！</font>"
                },
                updattime: {
                    maxlength: "<font color='red'>更新时间最大支持45位,输入的数据已经超过最大长度！</font>"
                },
                publishtime: {
                    maxlength: "<font color='red'>发布时间最大支持45位,输入的数据已经超过最大长度！</font>"
                },
                checker: {
                    maxlength: "<font color='red'>审核人最大支持45位,输入的数据已经超过最大长度！</font>"
                },
                checktime: {
                    maxlength: "<font color='red'>审核时间最大支持45位,输入的数据已经超过最大长度！</font>"
                },
                hticount: {
                    maxlength: "<font color='red'>点击率最大支持45位,输入的数据已经超过最大长度！</font>"
                },
                newfrom: {
                    required: "<font color='red'>  不能为空！</font>",
                    maxlength: "<font color='red'> 最大支持256位,输入的数据已经超过最大长度！</font>"
                },
                color: {
                    maxlength: "<font color='red'>颜色最大支持45位,输入的数据已经超过最大长度！</font>"
                },
                size: {
                    maxlength: "<font color='red'>标题字体最大支持45位,输入的数据已经超过最大长度！</font>"
                },
                zg: {
                    maxlength: "<font color='red'>撰稿摄影最大支持128位,输入的数据已经超过最大长度！</font>"
                },
                cq: {
                    maxlength: "<font color='red'>错情最大支持512位,输入的数据已经超过最大长度！</font>"
                },
                content: {
                    maxlength: "<font color='red'>内容最大支持6,000位,输入的数据已经超过最大长度！</font>"
                },
                memo: {
                    maxlength: "<font color='red'>备注最大支持1,024位,输入的数据已经超过最大长度！</font>"
                },
                ext1: {
                    required: "<font color='red'> 不能为空！</font>",
                    maxlength: "<font color='red'>  最大支持45位,输入的数据已经超过最大长度！</font>"
                },
                ext2: {
                    required: "<font color='red'> 不能为空！</font>",
                    maxlength: "<font color='red'>  最大支持64位,输入的数据已经超过最大长度！</font>"
                },
                ext3: {
                    required: "<font color='red'> 不能为空！</font>",
                    maxlength: "<font color='red'>  最大支持45位,输入的数据已经超过最大长度！</font>"
                },
                extint1: {
                    required: "<font color='red'> 不能为空！</font>",
                    digits: "<font color='red'>请输入数字，不能输入非数字字符！</font>",
                    maxlength: "<font color='red'>  最大支持3位,输入的数据已经超过最大长度！</font>"
                },

                ext4: {
                    required: "<font color='red'> 不能为空！</font>",
                    maxlength: "<font color='red'>  最大支持256位,输入的数据已经超过最大长度！</font>"
                },
                ext5: {
                    required: "<font color='red'> 不能为空！</font>",
                    maxlength: "<font color='red'>  最大支持256位,输入的数据已经超过最大长度！</font>"
                },
                ext6: {
                    required: "<font color='red'> 不能为空！</font>",
                    maxlength: "<font color='red'>  最大支持256位,输入的数据已经超过最大长度！</font>"
                },
                ext7: {
                    required: "<font color='red'> 不能为空！</font>",
                    maxlength: "<font color='red'> 大支持512位,输入的数据已经超过最大长度！</font>"
                },
                ext8: {
                    //required: "<font color='red'> 不能为空！</font>",
                    maxlength: "<font color='red'>  最大支持512位,输入的数据已经超过最大长度！</font>"
                },
                ext9: {
                    required: "<font color='red'> 不能为空！</font>",
                    maxlength: "<font color='red'>  最大支持512位,输入的数据已经超过最大长度！</font>"
                },
                status: {
                    maxlength: "<font color='red'>状态最大支持45位,输入的数据已经超过最大长度！</font>"
                },
                check2: {
                    maxlength: "<font color='red'>复核人最大支持45位,输入的数据已经超过最大长度！</font>"
                },
                classes: {
                    maxlength: "<font color='red'>扩展类型最大支持45位,输入的数据已经超过最大长度！</font>"
                },
                checkstatus: {
                    maxlength: "<font color='red'>审核状态最大支持45位,输入的数据已经超过最大长度！</font>"
                },
                link: {
                    maxlength: "<font color='red'>链接地址最大支持512位,输入的数据已经超过最大长度！</font>"
                },
                newdate: {
                    maxlength: "<font color='red'> 最大支持45位,输入的数据已经超过最大长度！</font>"
                },
                descriptions: {
                    maxlength: "<font color='red'>说明最大支持1,024位,输入的数据已经超过最大长度！</font>"
                },
                level1: {
                    maxlength: "<font color='red'>栏目1级最大支持45位,输入的数据已经超过最大长度！</font>"
                },
                level2: {
                    maxlength: "<font color='red'>栏目2级最大支持45位,输入的数据已经超过最大长度！</font>"
                },
                level3: {
                    maxlength: "<font color='red'>栏目3级最大支持45位,输入的数据已经超过最大长度！</font>"
                },
                level1name: {
                    maxlength: "<font color='red'> level1name最大支持45位,输入的数据已经超过最大长度！</font>"
                },
                level2name: {
                    maxlength: "<font color='red'> level2name最大支持45位,输入的数据已经超过最大长度！</font>"
                },
                level3name: {
                    maxlength: "<font color='red'> level3name最大支持45位,输入的数据已经超过最大长度！</font>"
                },
                imagepath: {
                    required: "<font color='red'>截图不能为空！</font>",
                    maxlength: "<font color='red'>截图最大支持512位,输入的数据已经超过最大长度！</font>"
                },
                shownum: {
                    //required: "显示顺序不能为空！",
                    digits: "<font color='red'>请输入数字，不能输入非数字字符！</font>",
                    //minlength: "<font color='red'>最少输入1位！</font>",
                    maxlength: "<font color='red'>显示顺序最大支持11位，输入的数据已经超过最大长度！</font>"
                },
                ranger: {
                    maxlength: "<font color='red'>范围最大支持45位,输入的数据已经超过最大长度！</font>"
                }
            } //end message;
        }); //end validate;
    }) //end funciton read;
</script>
